/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package se.sll.service.catalogue.importer.camel;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.ejb.Singleton;
import javax.ejb.Startup;
import javax.inject.Inject;
import lombok.extern.slf4j.Slf4j;
import se.sll.service.catalogue.common.property.CatalogProperties;

/**
 *
 * @author khaleddaham
 */
@Startup
@Singleton
@Slf4j
public class VMExtractTransformRoute {

    /**
    public VMExtractTransformRoute() {
        if (CatalogProperties.getProperty(CatalogProperties.NAME.FEATURE_FLAG_READ_FROM_SNOD)) {
            // Setup route from SNOD/VTGET
        } else {
            // Use from file            
        }
    }
     * 
     */

 /**
    @Inject
    CdiCamelContext camelCtx;

    @PostConstruct
    public void init() throws Exception {
            log.info("Create CamelContext and register Camel Route.");
            // Define Timer URI
            simpleRoute.setTimerUri("timer://simple?fixedRate=true&period=10s");
            // Add Camel Route
            camelCtx.addRoutes(simpleRoute);
            // Start Camel Context
            camelCtx.start();
            log.info("CamelContext created and camel route started.");
    }

    @PreDestroy
    public void stop() throws Exception {
       camelCtx.stop();
    }
    */
}
